package com.just.spring4.ch1.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by han.yuan
 * 使用功能类的bean
 */
@Service
public class UseFunctionService {
    @Autowired
    private FunctionService functionService;
    public String sayHello(String word){
        return functionService.sayHello(word);
    }
}
